<%@ include file="/common/taglibs.jsp"%>
<content tag="buttons">
	<probiz:iconBtn btnType="adjustInventory" onclick="showAdjustInventoryConfirmDialog();" disabled="yes"/>
	<probiz:iconBtn btnType="save" onclick="saveSetting();" isHidden="yes"/>
</content>
<probiz:ui_tabs tabsId="detail" />
<div class="top clearfix">
	<ul class="tab" id="detail">
		<li class="curr">
			<a href="#tab-adjustStock"><span><fmt:message key="inventoryDetail.tab.adjustStock"/></span></a>
		</li>
		<li>
			<a href="#tab-setting"><span><fmt:message key="inventoryDetail.tab.setting"/></span></a>
		</li>
	</ul>
</div>

<div class="modify">
	<%@include file="include/inventoryFormAdjustStock.jspf"%>
	<%@include file="include/inventoryFormSetting.jspf"%>

</div>	

<v:javascript formName="inventory" staticJavascript="false" />
<script type="text/javascript"	src="${ctxPath}/scripts/probiz/inventory/inventoryForm.js?rs=${appConfig.rs}"></script>
<script type="text/javascript">
$j(document).ready(function () {
	__FMTExtend = {
		inventoryDetail_adjustSuccess:"<fmt:message key="inventoryDetail.adjustSuccess"/>",
		inventoryDetail_saveSettingSuccess:"<fmt:message key="inventoryDetail.saveSettingSuccess"/>"
	};
	$j.extend(__FMT, __FMTExtend); 

	allocatedQuantity = "${inventory.allocatedQuantity}";
	quantityOnHand = "${inventory.quantityOnHand}";
});	

</script>